package com.pay.service.service.mq;

import com.pay.service.service.mq.impl.ActiveMq4PayNotify;
import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.core.JmsTemplate;

import javax.jms.Queue;


/**
 * @Description:
 * @author dingzhiwei jmdhappy@126.com
 * @date 2017-07-05
 * @version V1.0
 * @Copyright: www.xxpay.org
 */
@Configuration
public class MqConfig {

    public static final String PAY_NOTIFY_QUEUE_NAME = "pay.notify.queue";
    

    public static class Impl{
    	public static final String ACTIVE_MQ = "activeMQ";
    }

    @Bean
    public Mq4PayNotify mq4PayNotify(){
        return new ActiveMq4PayNotify();
    }

    @Bean
    public Queue payNotifyQueue() {
        return new ActiveMQQueue(PAY_NOTIFY_QUEUE_NAME);
    }


    
}
